# -*- coding: utf-8 -*-
from turtle import*
tracer(10)
ht()
fillcolor('#B8860B')#填充颜色的rgb码
pensize(10)#画笔的尺寸
pencolor('#5E2612')#画笔颜色

#body----身体部分
penup()#抬起画笔
goto(-70,-85)#设置起始位置
seth(135)#设置起始方向
pendown()#落下画笔
begin_fill()
circle(18,180)#半径为18圆心角为180的圆
circle(200,17)
seth(-90)
circle(400,13)
circle(18,180)
seth(-104)
circle(18,180)
circle(400,13)
seth(28)
circle(200,17)
circle(18,180)
end_fill()
#body white
penup()
goto(0,-185)
fillcolor("white")
pencolor("white")
seth(0)
pendown()
begin_fill()
circle(20,22.5)
circle(30,135)
circle(20,45)
circle(30,135)
circle(20,22.5)
end_fill()

#face-----脸部分
fillcolor('#B8860B')
pencolor('#5E2612')
seth(-22.5)
penup()
goto(0,0)
fd(120)
pendown()
seth(60)
begin_fill()
circle(75,45)
circle(125,135)
circle(75,45)
circle(125,135)
end_fill()
pensize(17)
penup()
goto(45,0)
pendown()
circle(5,360)
penup()
goto(-45,0)
pendown()
circle(5,360)
#face white
penup()
seth(-22.5)
fd(75)
seth(60)
pendown()
fillcolor("white")
begin_fill()
pencolor("white")
circle(15,45)
circle(30,135)
circle(15,45)
circle(30,135)
end_fill()

#face2------脸补充函数
fillcolor('#B8860B')
pencolor('#5E2612')
penup()
goto(0,-15)
pendown()
pensize(10)
seth(0)
circle(5,360)
seth(-45)
fd(20)
penup()
goto(0,-15)
seth(-135)
pendown()
fd(20)
penup()
goto(65,100)
circle(35,170)
pendown()
begin_fill()
circle(35,205)
end_fill()
penup()
goto(-65,100)
seth(-45)
circle(-35,175)
pendown()
begin_fill()
circle(-35,195)
end_fill()
#heart
penup()
goto(150,150)
seth(45)
pencolor("red")
fillcolor("red")
pendown()
begin_fill()
fd(19)
circle(25,45)
circle(11.25,180)
seth(90)
circle(11.25,180)
circle(25,45)
fd(19)
end_fill()

update()
done()
